import request from '@/utils/request'

export default {
  //医院列表
  getHospSetList(current,limit,searchObj) {
    return request({
      url: `/admin/hosp/hospitalSet/findPageHospital/${current}/${limit}`,
      method:'post',
      data: searchObj
    })
  },
  //删除医院
  deleteHospSet(id){
    return request({
      url:`/admin/hosp/hospitalSet/${id}`,
      method:'delete'
    })
  },
  //批量删除医院
  batchRemoveHospSet(idList){
    return request({
      url:`/admin/hosp/hospitalSet/batchRemove`,
      method:'delete',
      data: idList
    })
  },
  //锁定和解除锁定
  lockHospSet(id,status){
    return request({
      url:`/admin/hosp/hospitalSet/lockHospital/${id}/${status}`,
      method:'put'
    })
  },
  //添加医院信息
  saveHospSet(hospitalSet){
    return request({
      url:`/admin/hosp/hospitalSet/saveHospital`,
      method:'post',
      data: hospitalSet
    })
  },
  //根据id查询医院信息
  getHospSet(id){
    return request({
      url:`/admin/hosp/hospitalSet/getHospSet/${id}`,
      method:'get'
    })
  },
  //修改医院信息
  updateHospSet(hospitalSet){
    return request({
      url:`/admin/hosp/hospitalSet/updateHospitalSet`,
      method:'post',
      data:hospitalSet
    })
  }


}
